package musika;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class EI_ErroreKonpasTamaina {

	private JFrame frmErrorea;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EI_ErroreKonpasTamaina window = new EI_ErroreKonpasTamaina();
					window.frmErrorea.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public EI_ErroreKonpasTamaina() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmErrorea = new JFrame();
		frmErrorea.setTitle("Errorea");
		frmErrorea.setBounds(100, 100, 353, 143);
		frmErrorea.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frmErrorea.getContentPane().setLayout(null);
		frmErrorea.setVisible(true);
		
		JLabel lblKonpasarenTamainaGehiegizkoa = new JLabel("Konpasaren tamaina gehiegizkoa da!");
		lblKonpasarenTamainaGehiegizkoa.setBounds(38, 26, 273, 15);
		frmErrorea.getContentPane().add(lblKonpasarenTamainaGehiegizkoa);
		
		JButton btnAdos = new JButton("Ados");
		btnAdos.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				frmErrorea.setVisible(false);
				
			}
		});
		btnAdos.setBounds(110, 69, 117, 25);
		frmErrorea.getContentPane().add(btnAdos);
	}
}
